package com.legrand.www.module.core.entity;

import com.legrand.www.module.core.entity.common.BaseClass;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import lombok.*;

import java.util.Date;

/**
 * @author xiah
 * @date 2018/4/26 17:45
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "t_code")
@EqualsAndHashCode(callSuper = false)
public class Code extends BaseClass {
    private static final long serialVersionUID = 1L;
    @TableField(strategy = FieldStrategy.NOT_EMPTY)
    private String code;
    @TableField(value = "expired_time", strategy = FieldStrategy.NOT_NULL)
    private Date expiredTime;
}
